<%@page import="com.swk.bean.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body>
	<h3>
		欢迎登录，
		<% 
			Student student = (Student)session.getAttribute("user");
			if(student == null){
				out.write("游客");
			}else{
				out.write(student.getUsername());
			}
		%>&nbsp;&nbsp;
		<a href="/webDemo1/student">注销</a>
	</h3><br>
	<h2>这里是主页</h2>
</body>
</html>